﻿using B.W.passport.Domain;
using Microsoft.EntityFrameworkCore;


namespace B.W.passport.EnitiyFrameWorkCore
{
    public class PassportDbcontext:DbContext
    {
        /// <summary>
        /// 上下文
        /// </summary>
        /// <param name="options"></param>
       public PassportDbcontext(DbContextOptions<PassportDbcontext> options) : base(options)
        {

        }


        public DbSet<Accessories> Accessoriess {  get; set; }
        public DbSet<Account> Accounts {  get; set; }
        public DbSet<AccountRole> AccountRoles {  get; set; }
        public DbSet<Additive> Additives {  get; set; }
        public DbSet<Breed> Breeds {  get; set; }
        public DbSet<FarmEnterprise> FarmEnterprises {  get; set; }
        public DbSet<Immunity> Immunitys {  get; set; }
        public DbSet<Image> Image{  get; set; }
       
        public DbSet<Machining> Machinings {  get; set; }
        public DbSet<MachiningEnterprise> MachiningEnterprises {  get; set; }
        public DbSet<Material> Materials {  get; set; }
        public DbSet<PackeMaterial> PackeMaterials {  get; set; }
        public DbSet<Permission> Permissions {  get; set; }
        public DbSet<Product> Products {  get; set; }
        public DbSet<Role> Roles {  get; set; }
        public DbSet<RolePermission> RolePermissions {  get; set; }
        public DbSet<Slaughte> Slaughtes {  get; set; }
        public DbSet<SlaughteEnterprise> SlaughteEnterprises {  get; set; }
    }
}
